import axios from 'axios';

export interface DashBoadDataRecord {
  typeId: number;
  expertPendNum: number;
  expertApprovedNum: number;
  firstPendNum: number;
  finalPendNum: number;
  contactPendNum: number;
  midTermPendNum: number;
  finalExaminePendNum: number;
}

export function getDashBoadData() {
  return axios.get<DashBoadDataRecord>(`/admin/api/dashboard/workbench`);
}
